<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page import="com.gmail.avereshchaga.web.controller.DivisionController"%>
<%@ page import="static com.gmail.avereshchaga.tools.UrlList.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Divisions List</title>
    </head>

    <body>
        <table class="loctable">
            <tr><td valign="top">  
		<%@ include file="login.jsp" %> 
		
		<b><spring:message code="label.divisions.list"/>:</b> 
		   
		<table> 
        <c:forEach items="${divisions}" var="division">
            <tr>
                <td><c:out value="${division.name}" /></td>
                <td><a href="<%=DIVISION_UPDATE_URL%>/${division.id}" class="cref"><spring:message code="label.edit"/></a></td>
            </tr>
        </c:forEach>
        </table>
        </td></tr>
        </table>
    </body>
</html>
